﻿@using News.Models.Database;
@using News.Models;
@{
    //var NewsID = ViewData["NewsID"];
    var nnew = ViewData["News"] as List<News>;

    var list = nnew.Where(x => x.NewsId == Public.newsid).ToList();
    foreach(var item in list)
    {
        <h1 class="detail-title">@item.NewsTitle</h1>
      <div class="post_info">
    <span>@item.NewsTime</span>　来源: <span>@item.NewsSource</span>
      </div>
      <div class="post_content">@item.NewsContent</div>
    }
}
